import request from '@/utils/request'

// 产品借样-列表
export function queryProductBorrowList(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/list-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-添加
export function saveProductBorrow(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/add-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-修改
export function updateProductBorrow(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/update-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-查看
export function getProductBorrowDetail(params) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/get-product-borrow-sample-order-detail',
    method: 'GET',
    params
  })
}

// 产品借样-出库
export function outProductBorrow(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/out-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-取消
export function cancelProductBorrow(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/cancel-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-归还
export function backProductBorrow(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/back-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-手动完结
export function endProductBorrow(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/end-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-业务审核
export function businessVerify(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/b-verify-product-borrow-sample-order',
    method: 'POST',
    data
  })
}

// 产品借样-仓库审核
export function warehouseVerify(data) {
  return request({
    url: '/wms_v1_pc/product-borrow-sample-order/w-verify-product-borrow-sample-order',
    method: 'POST',
    data
  })
}